import { stringLengthB, stringSubstrB } from "@/tool/stringUtils"
import { Ref, ref } from "vue"

const bulletList:Ref<string[]> = ref([])

const insertDM = (item: string) => {
    if(bulletList.value.length == 15){
        bulletList.value.shift()
    }
    bulletList.value.push(stringLengthB(item) > 48 ? stringSubstrB(item, 0, 48) + "..." : item)
}




export {bulletList, insertDM}